export function lineOpt (yLength) {
    return {
        color: ["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],
        padding: [15,10,0,15],
            dataLabel: false,
            dataPointShape: false,
            enableScroll: false,
            legend: {
                show: false
            },
            xAxis: {
              disableGrid: true
            },
            yAxis: {
                gridType: "solid",
                data: yLength === 2 ? [
                    {
                        gridType: "solid",
                        position: 'left',
                        min: 0
                    },
                    {
                        position: 'right',
                        min: 0
                    },
                ] : [
                    {
                        gridType: "solid",
                        position: 'left',
                        min: 0
                    },
                ]
            },
            extra: {
                line: {
                    type: "curve",
                    width: 2,
                    activeType: "hollow",
                    linearType: "custom",
                    onShadow: true,
                    animation: "horizontal"
                }
            }
    }
} 
export function pieOpt () {
    return {
        rotate: false,
        rotateLock: false,
        background: '#fff',
        color: ["#387AF6","#67D4E6","#6F23F5","#FFC97A","#DF4A50"],
        padding: [5,5,5,5],
        dataLabel: false,
        enableScroll: false,
        legend: {
          show: false,
          position: "bottom",
          lineHeight: 25
        },
        title: {
          name: ''
        },
        subtitle: {
          name: ''
        },
        extra: {
          ring: {
            ringWidth: 40,
            activeOpacity: 0.5,
            activeRadius: 10,
            offsetAngle: 0,
            labelWidth: 15,
            border: false,
            borderWidth: 3,
            borderColor: "#FFFFFF"
          }
        }
      }
} 